﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace XiaoLiuren
{
    public class EnumDic
    {
        public static readonly Dictionary<int, string> ShiChen = new Dictionary<int, string>()
        {
            {1,"子" },
            {2,"丑" },
            {3,"寅" },
            {4,"卯" },
            {5,"辰" },
            {6,"巳" },
            {7,"午" },
            {8,"未" },
            {9,"申" },
            {10,"酉" },
            {11,"戌" },
            {12,"亥" },
        };

        public static readonly Dictionary<string, int> UnShiChen = new Dictionary<string, int>()
        {
            {"子",1 },
            {"丑", 2},
            {"寅", 3},
            {"卯", 4},
            {"辰", 5},
            {"巳", 6},
            {"午", 7},
            {"未", 8},
            {"申", 9},
            {"酉", 10},
            {"戌", 11},
            {"亥", 12},
        };

        #region 时辰时间段
        public static readonly TimeSpan ziStart=DateTime.Parse("23:00").TimeOfDay;
        public static readonly TimeSpan ziEnd = DateTime.Parse("00:59").TimeOfDay;

        public static readonly TimeSpan chouStart = DateTime.Parse("1:00").TimeOfDay;
        public static readonly TimeSpan chouEnd = DateTime.Parse("2:59").TimeOfDay;

        public static readonly TimeSpan yanStart = DateTime.Parse("3:00").TimeOfDay;
        public static readonly TimeSpan yanEnd = DateTime.Parse("4:59").TimeOfDay;

        public static readonly TimeSpan maoStart = DateTime.Parse("5:00").TimeOfDay;
        public static readonly TimeSpan maoEnd = DateTime.Parse("6:59").TimeOfDay;

        public static readonly TimeSpan chenStart = DateTime.Parse("7:00").TimeOfDay;
        public static readonly TimeSpan chenEnd = DateTime.Parse("8:59").TimeOfDay;

        public static readonly TimeSpan siStart = DateTime.Parse("9:00").TimeOfDay;
        public static readonly TimeSpan siEnd = DateTime.Parse("10:59").TimeOfDay;

        public static readonly TimeSpan wuStart = DateTime.Parse("11:00").TimeOfDay;
        public static readonly TimeSpan wuEnd = DateTime.Parse("12:59").TimeOfDay;

        public static readonly TimeSpan weiStart = DateTime.Parse("13:00").TimeOfDay;
        public static readonly TimeSpan weiEnd = DateTime.Parse("14:59").TimeOfDay;

        public static readonly TimeSpan shenStart = DateTime.Parse("15:00").TimeOfDay;
        public static readonly TimeSpan shenEnd = DateTime.Parse("16:59").TimeOfDay;

        public static readonly TimeSpan youStart = DateTime.Parse("17:00").TimeOfDay;
        public static readonly TimeSpan youEnd = DateTime.Parse("18:59").TimeOfDay;

        public static readonly TimeSpan xuStart = DateTime.Parse("19:00").TimeOfDay;
        public static readonly TimeSpan xuEnd = DateTime.Parse("20:59").TimeOfDay;

        public static readonly TimeSpan haiStart = DateTime.Parse("21:00").TimeOfDay;
        public static readonly TimeSpan haiEnd = DateTime.Parse("22:59").TimeOfDay;
        #endregion

        public static readonly Dictionary<int,string> NongLiRiQi=new Dictionary<int, string>()
        {
            {1,"初一" },
            {2,"初二" },
            {3,"初三" },
            {4,"初四" },
            {5,"初五" },
            {6,"初六" },
            {7,"初七" },
            {8,"初八" },
            {9,"初九" },
            {10,"初十" },

            {11,"十一" },
            {12,"十二" },
            {13,"十三" },
            {14,"十四" },
            {15,"十五" },
            {16,"十六" },
            {17,"十七" },
            {18,"十八" },
            {19,"十九" },
            {20,"二十" },

            {21,"廿一" },
            {22,"廿二" },
            {23,"廿三" },
            {24,"廿四" },
            {25,"廿五" },
            {26,"廿六" },
            {27,"廿七" },
            {28,"廿八" },
            {29,"廿九" },
            {30,"三十" },

        };

        public static readonly Dictionary<int,string> NongLiYue=new Dictionary<int, string>()
        {
            {1,"正" },
            {2,"二" },
            {3,"三" },
            {4,"四" },
            {5,"五" },
            {6,"六" },
            {7,"七" },
            {8,"八" },
            {9,"九" },
            {10,"十" },

            {11,"十一" },
            {12,"腊" },
        };

        public static readonly Dictionary<int,string> GuaXiangDic=new Dictionary<int, string>()
        {
            {1,"大安" },
            {2,"留连" },
            {3,"速喜" },
            {4,"赤口" },
            {5,"小吉" },
            {6,"空亡" },
        };

        public static readonly Dictionary<string,string> XunWuGuaCi=new Dictionary<string, string>()
        {
            {"大安加留连","失物西北去"},
           
            {"大安加速喜","失物当日见"},
           
            {"大安加赤口","失物不用找"},
           
            {"大安加小吉","失物不出门"},
           
            {"大安加空亡","失物无踪影"},
           
            {"大安加大安","失物在家里"},
           
            {"留连加大安","物在家中藏"},
           
            {"留连加速喜","失物三天里"},
           
            {"留连加赤口","失物准丢失"},
           
            {"留连加小吉","失物东南去"},
           
            {"留连加空亡","失物不见面"},
           
            {"留连加留连","失物落在南"},
           
            {"速喜加赤口","失物往正北"},
           
            {"速喜加小吉","失物在家里"},
           
            {"速喜加空亡","失物不久见"},
           
            {"速喜加大安","失物不丢失"},
           
            {"速喜加留连","失物无信息"},
           
            {"速喜加速喜","失物落正南"},
           
            {"赤口加小吉","失物无信息"},
           
            {"赤口加空亡","失物不用找"},
           
            {"赤口加大安","失物东北找"},
           
            {"赤口加留连","失物不回还"},
           
            {"赤口加速喜","失物有着落"},
           
            {"赤口加赤口","失物正西找"},
           
            {"小吉加空亡","失物正东找"},
           
            {"小吉加大安","失物自己出"},
           
            {"小吉加留连","失物上西南"},
           
            {"小吉加速喜","失物在院里"},
           
            {"小吉加赤口","失物丢了手"},
           
            {"小吉加小吉","失物在西南"},
           
            {"空亡加大安","失物反复间"},
           
            {"空亡加留连","失物永不还"},
           
            {"空亡加速喜","失物在家里"},
           
            {"空亡加赤口","失物往远走"},
           
            {"空亡加小吉","失物回家里"},
           
            {"空亡加空亡","失物寻不见"} ,

        };

        private const string daan = "大安；身不动时，属青龙木，凡谋事一五七（属四肢）贵人西南，冲犯东方，小孩婆姐六畜惊，大人青面阴神。断曰；大安事事昌，求财在坤方，失物去不远，宅舍保安康";

        private const string liulian = "留连；人未归时，属玄武水，凡谋事二八十（属肾胃）贵人南方，冲犯北方，小孩游路亡魂，大人乌面夫人。断曰；留连事难成，求谋月未明，凡事只宜缓，去者未回程；失物南方见，急讨方称心，更须防口舌，人口且太平。";

        private const string suxi =
            "速喜；人便至时，属朱雀火，凡谋三六九（属心脑），贵人西南，，冲犯南方，小孩婆姐动勿惊，大人火箭将军。断曰；速喜喜来临，求财向南行，失物申未午，逢人路上寻；官事有福德，病者无祸侵，田宅六畜吉，行人有喜音。";

        private const string chikou = "赤口；官事凶时，属白虎金，凡谋四七十（属肺胃）贵人东方，冲凡西方，小孩迷魂童子，大人金神七煞。断曰；赤口主口舌，官非切要防，失物急去寻，行人有惊慌。六畜多惊怪，病者出西方，更须防诅咒，恐怕染瘟疫。";

        private const string xiaoji = "小吉；人来喜时，属六合木，凡求谋一五七（属肝肠），贵人西南，冲犯东方，小孩婆姐六畜惊，大人无主家神。断曰；小吉最吉昌，路上好商量，阴人来报喜，失物在坤方；行人立便至，交易甚是强，凡是皆和合，病者辱上苍。";

        private const string kongwang = "空亡；音信稀时，属勾陈土，凡谋三六九（属脾脑），贵人北方，冲犯厝地，小孩土瘟神煞，大人土压夫人。断曰；空亡事不祥，阴人多乖张，求财无利益，行人有灾秧；失物寻不见，官事有刑伤，病人逢暗鬼，禳解保安康。";
        
        public static readonly Dictionary<string, string> Remask = new Dictionary<string, string>()
        {
            {"大安", daan},
            {"留连", liulian },
            {"速喜", suxi },
            {"赤口", chikou },
            {"小吉", xiaoji },
            {"空亡" ,kongwang}
        };

    }

    public enum GuaXiang
    {
        大安 = 1,
        留连 = 2,
        速喜 = 3,
        赤口 = 4,
        小吉 = 5,
        空亡 = 6,
    }
}
